package com.kunchi.platform.repository;


import com.kunchi.platform.entity.gateway.CompanyGateway;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by zhouwei on 2017/8/14.
 */
public interface CompanyGatewayRepository extends JpaRepository<CompanyGateway, Long> {

  public List<CompanyGateway> findByCompanyId(Long companyId);

  CompanyGateway findByCompanyIdAndSerialNumber(Long companyId, Long serialNumber);
}
